//
//  YYHomeModel.m
//  drivingSchool
//
//  Created by 子yu 刘 on 2018/7/29.
//  Copyright © 2018年 子yu 刘. All rights reserved.
//

#import "YYHomeModel.h"

@implementation YYHomeModel

+(NSDictionary *)JSONKeyPathsByPropertyKey
{
    /**自定义字段         网络字段**/
    return @{
             @"sid"      :   @"id",
             @"image"      :   @"image",
             @"money"      :   @"money",
             @"price_id"      :   @"price_id",
             @"school_address"      :   @"school_address",
             @"school_name"      :   @"school_name",
             @"school_phone"      :   @"school_phone",
             };
}

+ (NSValueTransformer *)JSONTransformerForKey:(NSString *)key
{
    return [MTLValueTransformer transformerUsingReversibleBlock:^id(id value, BOOL *success, NSError *__autoreleasing *error) {
        return DEF_OBJECT_TO_STIRNG(value);
    }];
}

@end
